<?php
namespace Member\Controller;
use Think\Controller;
class MemberController extends CommonController {
    public function login(){

        if(IS_POST){

            $member = $this->Model->where(I('post.'))->find();


            if($member){
                session('member',$member);
                redirect(U('Member/index/index'));die;
            }else{

                $this->error('用户名或密码错误','',1);die;
            }

        }

        $this->display();
    }

    public function register(){
        $this->display();
    }
}